package com.cyw.common.config.trace;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 声明mdc拦截器（springmvc）
 * @author cyw
 * @date 2019-06-14 10:20
 */
@Configuration
public class MdcWebConfig {

    @Bean
    public MDCTraceWebInterceptor mdcTraceWebInterceptor() {
        return new MDCTraceWebInterceptor();
    }
}
